<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of ContactServiceImpl
 *
 * @author krisada.thiangtham
 */
class CarouselServiceImpl {

    //put your code here
    private $dispatcher;

    public function __construct(CarouselDao $dispatcher) {
        return $this->dispatcher = $dispatcher;
    }

    public function action($action) {
        return $this->dispatcher->dispatch($action);
    }

    public function createButtomCarousel($carouselTo) {
        return $this->dispatcher->createButtomCarousel($carouselTo);
    }

    public function createCenterCarousel($carouselTO) {
        return $this->dispatcher->createCenterCarousel($carouselTO);
    }

    public function createLeftCarousel($carouselTO) {
        return $this->dispatcher->createLeftCarousel($carouselTO);
    }

    public function createRightCarousel($carouselTo) {
        return $this->dispatcher->createRightCarousel($carouselTo);
    }

    public function deleteButtomCarouselByID($id) {
        return $this->dispatcher->deleteButtomCarouselByID($id);
    }

    public function deleteCenterCarouselByID($id) {
        return $this->dispatcher->deleteCenterCarouselByID($id);
    }

    public function deleteLeftCarouselByID($id) {
        return $this->dispatcher->deleteLeftCarouselByID($id);
    }

    public function deleteRightCarouselByID($id) {
        return $this->dispatcher->deleteRightCarouselByID($id);
    }

    public function getAllButtomCarousel() {
        return $this->dispatcher->getAllButtomCarousel();
    }

    public function getAllCenterCarousel() {
        return $this->dispatcher->getAllCenterCarousel();
    }

    public function getAllLeftCarousel() {
        return $this->dispatcher->getAllLeftCarousel();
    }

    public function getAllRightCarousel() {
        return $this->dispatcher->getAllRightCarousel();
    }

    public function getAnotherCAByID($descID) {
        return $this->dispatcher->getAnotherCAByID($descID);
    }

}
